<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>{$head[title]}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta content="{$head[keywords]}" name="keywords" />
<meta content="{$head[description]}" name="description" />
<base href="{SITE_URL}" />
<link href="favicon.ico" rel="shortcut icon" />
<link href="{SKIN_PATH}skin/style.css" rel="stylesheet" type="text/css" />
<link rel="alternate" type="application/rss+xml" title="{$head[title]}" href="/rss.php?rssid={$catid}" />
<script language="JavaScript" src="misc/config.js"></script>
<script language="JavaScript" src="misc/jquery.min.js"></script>
<script language="JavaScript" src="misc/common.js"></script>
<script language="JavaScript" src="misc/validator.js"></script>
</head>
<body> 

{template 'header.html'}



<style type="text/css">
	.guestbook .item{ border-bottom:#eee solid 1px; padding:15px; margin:0 0 10px 0; height:auto; overflow:hidden; clear:both;}
	.guestbook .user {
		float: left;
		text-align: center;
		width: 100px;
	}
	.guestbook .detail {
		float: right;
		height: 100%;
		overflow: hidden;
		padding: 0 0 0 10px;
		width: 450px;
		word-wrap: break-word;
	}
	.quote{ font-size:30px; font-family:"宋体"; font-weight:bold; color:#ddd; }
</style>

<div class="container guestbook"> 
	<div class="main">
    	<div class="mod">
        	<div class="head">留言列表</div>
            <div class="body">
            	
                
                 <!--{loop $glist $n $r}-->
                  <div class="item">
                  	
                    <div class="user">
                    	<img src="{thumb('misc/nophoto.gif',72,72)}" />
                        <br/>{$r[username]}
                        <br/><a class="mysite" href="{$r[homepage]}" title="访问主页">主页</a>&nbsp;<a class="email" href="mailto:{$r[email]}" title="登录邮箱">信箱</a>&nbsp;<a class="qq" href="http://wpa.qq.com/msgrd?V=1&Uin={$r['qq']}&Site={$_SERVER[HTTP_HOST]}&Menu=yes" title="点击对话">QQ</a>
                    </div>
                    
                    <div class="detail">
                    	<p>{$r['title']}—{$r[addtime]}</p>
                    	<!--{if !$r['hidden']}-->
                          <p><span class="quote">“</span>{$r[content]}<span class="quote">”</span></p>
                         
                          <!--{if $r['reply']}--><span class="quote">“</span>管理员 <font color="red">{$r[replyer]}</font>于 <font color="red">{$r[replytime]}</font> <br>回复：{$r[reply]}<span class="quote">”</span>
                          <!--{/if}-->
                          
                          <!--{else}-->
                            <p style="color:red">此信息管理员可见</p>
                        <!--{/if}-->
                    </div>
                    
                  </div>
                  <!--{/loop}-->
                
                
                <!--{if $pages}-->
                <div class="pagination">{$pages}</div>
                <!--{/if}-->


            </div>
        </div>
    </div>
    
    <div class="aside">
    
    	<div class="mod">
        	<div class="head">菜单</div>
            <div class="body">
            	<ol>
                	<li><a href="{url("?module=$module")}">留言板首页</a></li>
    				<li><a href="{url("?module=$module&action=post")}">签写留言</a></li>
                </ol>
            </div>
        </div>
        <div class="mod">
        	<div class="head">搜索</div>
            <div class="body">
            	<form method="get" name="search" action="{url("?module=$module")}">
                关键字：
                <input name='keyword' type='text' size='30' value='{$keyword}'>&nbsp;
                <input type="radio" name="srchtype" value="0" {if (!$srchtype)} checked {/if}> 标题 	
                <input type="radio" name="srchtype" value="1" {if ($srchtype==1)} checked {/if}> 内容	
                <input type="radio" name="srchtype" value="2" {if ($srchtype==2)} checked {/if}> 会员
                <input name='submit' type='submit' value='留言搜索'></form>
            </div>
        </div>
        
    </div>
</div>




{template 'footer.html'}